package homework19;

import java.time.LocalDate;

public class SalesEmployee extends ColaEmployee {
    double monthlySales;//月销售额
    double commissionRate;//提成率

    void sendMoney(int month) {
        if (getSalary(month) == 1)
            System.out.println("工资是" + monthlySales * commissionRate + 100);
        System.out.println("工资是" + monthlySales * commissionRate);

    }

    public SalesEmployee(String name, LocalDate birthday, double monthlySales, double commissionRate) {
        super(name, birthday);
        this.monthlySales = monthlySales;
        this.commissionRate = commissionRate;
    }
    public SalesEmployee() {

    }
}
